<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>项目设置</title>
</head>
<body>
    <nav class="navbar navbar-default" role="navigation" style="position: absolute;top: 0px;left: 80px;width:-webkit-calc(100% - 200px);z-index: 1">
    <div class="container-fluid">
    <div class="navbar-header">
        <span style="font-size: xx-small" class="navbar-brand" >项目名称：{{ project_name.name }}</span>
        <a class="navbar-brand" href="/project_list/">返回项目列表</a>
    </div>
    <div>
        <ul class="nav navbar-nav">
            <li><a href="/apis/{{ project_name.id }}/">接口库</a></li>
            <li><a href="/cases/{{ project_name.id }}/">用例库</a></li>
            <li class="active"><a href="/project_set/{{ project_name.id }}/">项目设置</a></li>
        </ul>
    </div>
    </div>
</nav>

    <br>
    <br>
    <div style="text-align:center">
        <h3>项目名称</h3>
        <textarea name="" id="name" placeholder="最大100子" style="width:70%" rows="4">{{ project_name.name }}</textarea>
        <h3>项目描述</h3>
        <textarea name="" id="remark" placeholder="最大500子" style="width:70%" rows="4">{{ project_name.remark }}</textarea>
        <h3>其他管理员</h3>
        <textarea name="" id="other_user" placeholder="多个成员之间用够好" style="width:70%" rows="4">{{ project_name.other_user }}</textarea>
    </div>

    <br>
    <br>
<button type="button" onclick="save()" style="margin-left: 15%;width: 70%" class="btn btn-primary btn-lg btn-block">保存</button>
    <script>
        function save() {
        var name = document.getElementById('name').value;
        var remark = document.getElementById('remark').value;
        var other_user = document.getElementById('other_user').value;
        $.get('/save_project_set/'+'{{ project_name.id }}',{
            'name':name,
            'remark':remark,
            'other_user':other_user,
        },function (ret) {
            alert('保存成功')
        })
    }
    </script>


</body>
</html>